//
//  MutipChooseView.h
//  Select
//
//  Created by dihuijun on 17/3/16.
//  Copyright © 2017年 Cycle. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void(^chooseMoreBlock)(NSString *content,NSMutableArray *chooseArray);

@interface MutipChooseView : UIView<UITableViewDelegate,UITableViewDataSource>

/**   表格   */
@property (nonatomic, strong) UITableView *tableView;
/**   服务器那边传过来的datasource数据   */
@property (nonatomic, strong) NSMutableArray *datasource;

/**   选中的数据chooseArray   */
@property (nonatomic, strong) NSMutableArray *chooseArray;

/**   chooseBlock   */
@property (nonatomic,copy) chooseMoreBlock blockMore;

/**   ifAllSelected   */
@property (nonatomic, assign) BOOL isAllSelected;

/**   ifAllSelectSwitch 点击全部为 YES,全部选中后点击cell则会让其不选中，然后这个全中按钮就变会 ifAllSelectSwitch则为NO   */
@property (nonatomic, assign) BOOL isAllSelectSwitch;

/**  有header的初始化  */
+ (MutipChooseView *)shareMutipTableViewWithFrame:(CGRect)frame HeaderTitle:(NSString *)title;
/**  无header */
+ (instancetype)ShareMutipTableViewWithNoHeaderFrame:(CGRect)frame;

/**  刷新 */
- (void)reloadData;



@end
